home *** CD-ROM | disk | FTP | other *** search
- // rain2.cpp -- Use string to read a floating point value
-
- #include <iostream.h>
- #include <stdlib.h>
-
- main()
- {
- float rainFall;
- char response[128];
-
- cout << "Enter rain fall in inches: ";
- cin >> response;
- rainFall = atof(response);
- cout << "You entered : " << rainFall;
- }
-
-
- // Copyright (c) 1990 by Tom Swan. All rights reserved
- // Revision 1.00 Date: 10/23/1990 Time: 03:56 pm
-
- // Revision 1.01 Date: 07/08/1991 Time: 05:41 pm
- // Converted for Borland C++ 2.0
-